<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>出库管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link href="__PUBLIC__/css/layui.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/admin.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/public.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/css/bootstrap.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="layui-conter">
    <div class="layui-col-md12">
        <div class="navigation">
            <span>行政></span><span>仓库管理></span><span>出库管理</span>
        </div>

        <div class="white-conter">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="title-blue"><b>出库管理</b></div>
                    <div class="layui-card-body addPadding" style="padding-right: 300px;">
                        <form class="layui-form" action="" lay-filter="component-form-group">
                            <div class=" layui-row" style="margin-top: 20px;position: relative;">
                                <div class=" layui-col-xs3">
                                    <label class="layui-form-label">领用人：</label>
                                    <div class="layui-input-block">
                                        <select name="recipient">
                                            <option value="" selected="">请选择</option>
                                            <option value="1">1</option>
                                            <option value="2">2</option>
                                            <option value="3">3</option> 
                                        </select>
                                    </div>
                                </div>
                                <div class=" layui-col-xs3">
                                    <label class="layui-form-label">商品分类：</label>
                                    <div class="layui-input-block">
                                        <select name="class">
                                            <option value="" selected="">请选择</option>
                                            <option value="1">1</option>
                                            <option value="2">2</option>
                                            <option value="3">3</option>
                                        </select>
                                    </div>
                                </div>
                                <div class=" layui-col-xs3">
                                    <label class="layui-form-label">商品名称：</label>
                                    <div class="layui-input-block">
                                            <input type="text" placeholder="请输入..." class="layui-input" name="goodsname">
                                    </div>
                                </div>
                                <div class=" layui-col-xs3">
                                    <label class="layui-form-label">领用日期：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="enddate" id="enddate" lay-verify="date" placeholder="请选择"  class="layui-input" >
                                    </div>
                                </div>
                                <button class="layui-btn layui-btn-sm layui-btn-normal" style="position: absolute;right: -100px;">搜索</button>
                            </div>
                            <div class="layui-row" style="margin-top: 20px;position: relative;">
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label">录入人：</label>
                                    <div class="layui-input-block">
                                        <select name="supplier">
                                            <option value="" selected="">请选择</option>
                                            <option value="1">123</option>
                                            <option value="2">123</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label">所在仓库：</label>
                                    <div class="layui-input-block">
                                        <select name="warehouse">
                                            <option value="" selected="">请选择</option>
                                            <option value="1">1</option>
                                            <option value="2">2</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label">备注信息：</label>
                                    <div class="layui-input-block">
                                            <input type="text" placeholder="请输入..." class="layui-input" >
                                    </div>
                                </div>
                                <div class="layui-col-xs3">
                                    <label class="layui-form-label">是否归还：</label>
                                    <div class="layui-input-block">
                                        <select name="status">
                                            <option value="" selected="">请选择</option>
                                            <option value="1">以归还</option>
                                            <option value="2">未归还</option>
                                        </select>
                                    </div>
                                </div>
                                
                            </div>
                        </form>
                        <a class="btn" href="{:U('home/Warehouse/editOutgoing')}"><button class="layui-btn layui-btn-sm layui-btn-danger" style="position: absolute;left: 50px;" >添加</button></a>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <table  class="layui-hide" id="test-table-operate" lay-filter="test-table-operate"></table>
                            <div class="layui-form layui-border-box layui-table-view" lay-filter="LAY-table-1">
                                <div class="layui-table-box" style="margin-bottom: 20px">
                                    <div class="layui-table-body layui-table-main">
                                        <table cellspacing="0" cellpadding="0" border="0" class="layui-table">
                                            <thead>
                                            <tr>
                                                <th data-field="w-barcode">
                                                    <div class="layui-table-cell laytable-cell-w-barcode">
                                                        <span>条形码</span>
                                                    </div>
                                                </th>
                                                <th data-field="w-useman">
                                                    <div class="layui-table-cell laytable-cell-w-useman" align="center">
                                                        <span>领用人</span>
                                                    </div>
                                                </th>
                                                <th data-field="w-goodsname">
                                                    <div class="layui-table-cell laytable-cell-w-goodsname" align="center">
                                                        <span>商品名称</span>
                                                    </div>
                                                </th>
                                                <th data-field="w-usetime">
                                                    <div class="layui-table-cell laytable-cell-w-usetime" align="center">
                                                        <span>领用时间</span>
                                                    </div>
                                                </th>
                                                <th data-field="w-return">
                                                    <div class="layui-table-cell laytable-cell-w-return" align="center">
                                                        <span>是否归还</span>
                                                    </div>
                                                </th>
                                                <th data-field="w-where">
                                                    <div class="layui-table-cell laytable-cell-w-where" align="center">
                                                        <span>所在仓库</span>
                                                    </div>
                                                </th>
                                                <th data-field="w-enterman">
                                                    <div class="layui-table-cell laytable-cell-w-enterman" align="center">
                                                        <span>录入人</span>
                                                    </div>
                                                </th>
                                                <th data-field="w-classify">
                                                    <div class="layui-table-cell laytable-cell-w-classify" align="center">
                                                        <span>商品分类</span>
                                                    </div>
                                                </th>
                                                <th data-field="w-sort">
                                                    <div class="layui-table-cell laytable-cell-w-sort" align="center">
                                                        <span>排序</span>
                                                    </div>
                                                </th>
                                                <th data-field="operation">
                                                    <div class="layui-table-cell laytable-cell-operation" align="center">
                                                        <span>操作</span>
                                                    </div>
                                                </th>
                                            </tr>
                                            </thead>
                                            <tbody>

                                            <volist name="userList" id="list">
                                            <tr data-index="0" class="">
                                                <td data-field="w-barcode" align="center">
                                                    <div class="layui-table-cell laytable-cell-w-barcode" style="height:100%;overflow:visible;">
                                                       {$list.barcode}
                                                    </div>
                                                </td>
                                                <td data-field="w-useman" align="center">
                                                    <div class="layui-table-cell laytable-cell-w-useman" style="height:100%;overflow:visible;">
                                                        {$list.recipient}
                                                    </div>
                                                </td>
                                                <td data-field="w-goodsname" align="center">
                                                    <div class="layui-table-cell laytable-cell-w-goodsname" style="height:100%;overflow:visible;">
                                                        {$list.goodsname}
                                                    </div>
                                                </td>
                                                <td data-field="w-usetime" align="center">
                                                    <div class="layui-table-cell laytable-cell-w-usetime">
                                                       {$list.logtime}
                                                    </div>
                                                </td>
                                                <td data-field="w-return" align="center">
                                                    <div class="layui-table-cell laytable-cell-w-return" style="height:100%;overflow:visible;">
                                                       {$list.status}
                                                    </div> 
                                                </td>
                                                <td data-field="w-where" align="center">
                                                    <div class="layui-table-cell laytable-cell-w-where" style="height:100%;overflow:visible;">
                                                        {$list.warehouse}
                                                    </div>
                                                </td>
                                                <td data-field="w-enterman" align="center">
                                                    <div class="layui-table-cell laytable-cell-w-enterman">{$list.supplier}</div>
                                                </td>
                                                <td data-field="w-classify" align="center">
                                                    <div class="layui-table-cell laytable-cell-w-classify" style="height:100%;overflow:visible;">
                                                      {$list.class}
                                                    </div>
                                                </td>
                                                <td data-field="w-sort" align="center">
                                                    <div class="layui-table-cell laytable-cell-w-sort">↑↓</div>
                                                </td>
                                                <td data-field="operation" align="center">
                                                    <div class="layui-table-cell laytable-cell-operation">
                                                        <a class="btn" href="{:U('home/Warehouse/editOutgoing',array('id'=>$list['id']))}"><button data-method="offset" data-type="test8"  class="img-but edit-img" data-type="test8" lay-event="edit" id="btn"></button></a>
                                                        <a class="btn" href="{:U('home/Warehouse/delOutgoing',array('id'=>$list['id']))}"><button data-method="offset" data-type="auto"  class="img-but del-img"></button></a>
                                                    </div>
                                                </td>
                                            </tr>
                                        </volist>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="pagination">
                                    {$page}
                                </div>
                            </div>

                            <script type="text/html" id="test-table-operate-barDemo">
                                <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
                                <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
                            </script>
                        </div>
                    </div>
                </div>
            </div>
        </div>


    </div>
</div>
</body>
<script src="__PUBLIC__/js/layui.all.js"></script>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#classTime' //指定元素
        });
    });
</script>
</html>